<!-- 头部 phone -->
<template>
  <div class="boxinit">
    <div class="mainPh clearBoth">
      <div class="header clearBoth">
        <img src="../../assets/logo.png">
        <div @click="hanCli(!hanBol)" class="hanbao">
          <span></span>
          <span></span>
          <span></span>
        </div>
      </div>
    </div>
    <div id="nav_li" class="nav_list" :style="hanBol?'top:100%;':''">
      <ul class="clearBoth">
        <li v-for="(item,i) in navList" :key="i">
          {{item.name}}
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      navList: [
        {
          name: '语音识别',
          path: ''
        },
        {
          name: '语音合成',
          path: ''
        },
        {
          name: '自然语言理解',
          path: ''
        },
        {
          name: '图像视觉',
          path: ''
        },
        {
          name: '解决方案',
          path: ''
        },
        {
          name: '新闻资讯',
          path: ''
        },
        {
          name: '关于我们',
          path: ''
        }
      ],
      hanBol: false
    }
  },
  methods: {
    hanCli (bol) {
      this.hanBol = bol
    }
  }
}
</script>
<style lang='less' scoped>
.boxinit{
  position: relative;
}
.mainPh {
  width: 100%;
  background: #fff;
}
.header {
  width: 100%;
  height: auto;
  background: #fff;
  // height: 1rem;
  position: relative;
  z-index: 4;
  img {
    float: left;
    width: 130px;
    height: auto;
  }
  .hanbao {
    width: 0.6rem;
    height: 22px;
    margin: 0.2rem 0;
    float: right;
    margin-right: 0.2rem;
    cursor: pointer;
    span {
      width: 100%;
      display: block;
      height: 0.07rem;
      background: #225b9e;
      margin-bottom: 0.08rem;
      border-radius: 3px;
    }
  }
}
.nav_list {
  width: 100%;
  height: 100vh;
  background: #fff;
  padding: 0.25rem 0;
  transition: 0.3s;
  position: absolute;
  top: -100vh;
  z-index: 3;
  display: block;
  transition: 0.3s all;
  border-top: 1px solid #ccc;
  ul li{
    float: left;
    width: calc(33.3% - 0.4rem);
    font-size: 0.24rem;
    line-height: 1.5;
    padding: 0.1rem 0.2rem;
    text-align: center;
  }
}

</style>
